package com.enterprise.util;

public class  DaoUtils {

    /**
     * 获取存入数据的id
     * @param obj
     * @return
     */
    public static Long getMaxId(Object obj){
        Long maxIdL;
        if (obj == null){
            maxIdL = 1l;
        }else {
            Integer maxIdi = (Integer) obj;
            int maxIdir = maxIdi + 1;
            maxIdL = Long.valueOf(maxIdir);
        }
        return maxIdL;
    }
}
